import request from '@/utils/request'

export const getCourseListApi = () => request.get("/admin/course/list")

export const getCourseByIdApi = (id) => request.get(`/admin/course/getById?id=${id}`)

export const deleteCourseApi = (id) => request.delete(`/admin/course/delete/${id}`)

export const addCourseApi = (data) => request.post("/admin/course/save", data)

export const updateCourseApi = (data) => request.put("/admin/course/update", data)

export const getCoashListApi = () => request.get("/admin/coash/getAllUsername")

export const getUserListApi = () => request.get("/admin/childToUser/getAllName")